<?php 
class ControllerPageMytweet extends Controller{
		public function index(){
			if (!$this->user->isLogged()) {
				$this->redirect($this->url->link('account/login', '', 'SSL'));
			}
			
			//the load
			$this->load->model('boss/entrust');
			
			$this->data['breadcrumbs'] = array();
			
			$this->data['breadcrumbs'][] = array(
        	'text'      => '我的微博',
			'href'      => $this->url->link('page/mytweet', '', 'SSL'),      	
        	'separator' => '>>'
			);
			
			$this->document->setTitle($this->config->get('config_title'));
			$this->document->setDescription($this->config->get('config_meta_description'));

			$this->data['heading_title'] = $this->config->get('config_title');

			$myanalyze=$this->model_boss_entrust->getAnalyzeById($this->user->getId());
			
			$this->data{'myanalyze'}=$myanalyze;
				
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/page/mytweet.tpl')) 		            {
				$this->template = $this->config->get('config_template') . '/template/page/mytweet.tpl';
			} else {
				$this->template = 'default/template/page/mytweet.tpl';
			}
			
			$this->children = array(
				'common/footer',
				'common/header'
			);
											
			$this->response->setOutput($this->render());
		}
	}
?>